package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the payrecord database table.
 * 
 */
@Entity
@NamedQuery(name="Payrecord.findAll", query="SELECT p FROM Payrecord p")
public class Payrecord implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int parno;

	@Temporal(TemporalType.DATE)
	private Date partime;

	private int partype;

	private int parway;

	private String remark;

	//bi-directional many-to-one association to Payplan
	@ManyToOne
	@JoinColumn(name="payid")
	private Payplan payplan;

	public Payrecord() {
	}

	public int getParno() {
		return this.parno;
	}

	public void setParno(int parno) {
		this.parno = parno;
	}

	public Date getPartime() {
		return this.partime;
	}

	public void setPartime(Date partime) {
		this.partime = partime;
	}

	public int getPartype() {
		return this.partype;
	}

	public void setPartype(int partype) {
		this.partype = partype;
	}

	public int getParway() {
		return this.parway;
	}

	public void setParway(int parway) {
		this.parway = parway;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Payplan getPayplan() {
		return this.payplan;
	}

	public void setPayplan(Payplan payplan) {
		this.payplan = payplan;
	}

}